package com.ttg.web.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttg.model.po.QualityManageLadderRulePO;
import com.ttg.model.po.QualityManageTypeRulePO;
import com.ttg.model.pojo.QualityManageLadderRule;
import com.ttg.model.pojo.QualityManageTypeRule;

import java.util.List;

/**
 * 质量管理类别配置(TblQualityManageTypeConfig) dao
 *
 * @author chenyou
 * @datetime 2025-08-18 14:50:36
 */
public interface QualityManageTypeRuleDao extends IService<QualityManageTypeRule>{

    List<QualityManageTypeRule> getByDimType(Integer dimType);

    List<QualityManageTypeRule> getByParam(QualityManageTypeRulePO po);

    QualityManageTypeRule getByUnique(Integer dimType,Integer type,Integer subType,Long orgNo);

    void saveOrUpdateBatch(List<QualityManageTypeRule> rules,Integer dimType);
}

